/*
Theme Name: Sweet Connections
Theme URI: https://example.com/
Author: Sweet Connections
Description: Responsive Sweet Connections layout with existing profile/chat UI and ad placements.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: sweet-connections
*/

/*------------------------------------------------------------
Theme Name: Sweet Connections (Layout Ads & Direct Link Ready)
Description: 100% Blogger Layout editable - Change all Adsterra Direct Links and Banner Ads without code editing.
Version: 3.0.0
------------------------------------------------------------*/
:root {
--sc-primary: #0ea5a4;
--sc-primary-hover: #0f766e;
--sc-primary-gradient: linear-gradient(135deg, #0ea5a4 0%, #38bdf8 50%, #818cf8 100%);
--sc-secondary: #6366f1;
--sc-bg: #ffffff;
--sc-card-bg: #ffffff;
--sc-text-main: #0f172a;
--sc-text-muted: #64748b;
--sc-border: #f1f5f9;
--sc-border-highlight: #ccfbf1;
--sc-online: #10b981;
--sc-bubble-user: linear-gradient(135deg, #0ea5a4, #38bdf8);
--sc-bubble-peer: #f1f5f9;
--sc-shadow-sm: 0 2px 8px rgba(244, 63, 94, 0.08);
--sc-shadow-md: 0 10px 25px -3px rgba(244, 63, 94, 0.12), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
--sc-shadow-lg: 0 20px 35px -5px rgba(244, 63, 94, 0.18), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
--sc-radius: 18px;
--sc-radius-sm: 12px;
}
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background-color: var(--sc-bg);
color: var(--sc-text-main);
line-height: 1.5;
-webkit-font-smoothing: antialiased;
overflow-x: hidden;
}
a {
text-decoration: none;
color: inherit;
}
img {
max-width: 100%;
height: auto;
display: block;
}
button {
font-family: inherit;
border: none;
cursor: pointer;
background: none;
}
.sc-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 16px;
}
/* Header */
.sc-header {
position: sticky;
top: 0;
z-index: 100;
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border-bottom: 1px solid var(--sc-border-highlight);
transition: all 0.3s ease;
}
.sc-header-inner {
display: flex;
align-items: center;
justify-content: space-between;
height: 68px;
}
.sc-logo {
display: flex;
align-items: center;
gap: 10px;
font-size: 22px;
font-weight: 800;
letter-spacing: -0.5px;
color: var(--sc-text-main);
}
.sc-logo-icon {
width: 36px;
height: 36px;
border-radius: 10px;
background: var(--sc-primary-gradient);
display: flex;
align-items: center;
justify-content: center;
color: #fff;
font-size: 20px;
box-shadow: var(--sc-shadow-sm);
}
.sc-logo-text span {
background: var(--sc-primary-gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.sc-nav-desktop {
display: flex;
align-items: center;
gap: 26px;
}
.sc-nav-link {
font-size: 14px;
font-weight: 600;
color: var(--sc-text-muted);
transition: color 0.2s ease;
}
.sc-nav-link:hover, .sc-nav-link.active {
color: var(--sc-primary);
}
.sc-hamburger {
display: none;
flex-direction: column;
gap: 5px;
padding: 8px;
cursor: pointer;
}
.sc-hamburger span {
display: block;
width: 24px;
height: 2px;
background-color: var(--sc-text-main);
border-radius: 2px;
}
.sc-mobile-drawer {
display: none;
background: #ffffff;
border-bottom: 1px solid var(--sc-border-highlight);
padding: 14px 20px 20px;
box-shadow: var(--sc-shadow-md);
}
.sc-mobile-drawer.open {
display: block;
}
.sc-mobile-nav-link {
display: block;
padding: 10px 0;
font-size: 15px;
font-weight: 600;
color: var(--sc-text-main);
border-bottom: 1px solid #f8fafc;
}
/* WhatsApp CTA Button */
.sc-whatsapp-btn {
display: inline-block;
background: #25D366;
color: #ffffff !important;
padding: 13px 28px;
font-size: 16px;
font-weight: bold;
font-family: inherit;
text-decoration: none;
border-radius: 50px;
text-align: center;
box-shadow: 0 4px 12px rgba(37,211,102,0.35);
transition: all 0.25s ease;
cursor: pointer;
}
.sc-whatsapp-btn:hover {
background: #20ba59;
transform: translateY(-1px);
box-shadow: 0 6px 16px rgba(37,211,102,0.45);
}
/* Hero Section */
.sc-hero {
padding: 44px 0 32px;
background: radial-gradient(circle at 50% 0%, #ecfeff 0%, #eff6ff 35%, #ffffff 80%);
text-align: center;
position: relative;
}
.sc-hero-badge {
display: inline-flex;
align-items: center;
gap: 8px;
background: rgba(254, 226, 226, 0.7);
border: 1px solid #a5f3fc;
color: #0f766e;
padding: 6px 14px;
border-radius: 9999px;
font-size: 12px;
font-weight: 700;
margin-bottom: 16px;
}
.sc-hero-title {
font-size: 38px;
line-height: 1.15;
font-weight: 800;
letter-spacing: -1px;
color: var(--sc-text-main);
margin-bottom: 10px;
}
.sc-hero-title span {
background: var(--sc-primary-gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.sc-hero-subtitle {
font-size: 17px;
font-weight: 600;
color: #475569;
margin-bottom: 10px;
}
.sc-hero-desc {
max-width: 600px;
margin: 0 auto 24px;
font-size: 14px;
color: var(--sc-text-muted);
line-height: 1.6;
}
.sc-hero-cta {
display: inline-flex;
align-items: center;
gap: 8px;
background: var(--sc-primary-gradient);
color: #ffffff;
font-size: 15px;
font-weight: 700;
padding: 12px 30px;
border-radius: 9999px;
box-shadow: 0 10px 20px -3px rgba(244, 63, 94, 0.4);
transition: all 0.25s ease;
}
/* Blogger Layout Sections */
.blogger-ad-section {
margin: 16px auto;
max-width: 970px;
text-align: center;
width: 100%;
}
.blogger-ad-section .widget {
margin: 8px 0;
padding: 0;
}
.blogger-ad-section .widget-content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.ad-slot-box {
background: #fdfafc;
border: 1px dashed #67e8f9;
border-radius: 12px;
padding: 10px;
min-height: 56px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin: 8px auto;
width: 100%;
}
.ad-slot-label {
font-size: 10px;
text-transform: uppercase;
letter-spacing: 1px;
color: #0f766e;
font-weight: 700;
margin-bottom: 6px;
}
/* Country Filters */
.sc-filters-section {
padding: 16px 0 24px;
}
.sc-filter-list {
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
gap: 8px;
}
.sc-filter-btn {
padding: 8px 18px;
font-size: 13px;
font-weight: 600;
border-radius: 9999px;
color: var(--sc-text-muted);
background: #f8fafc;
border: 1px solid var(--sc-border);
transition: all 0.2s ease;
cursor: pointer;
white-space: nowrap;
}
.sc-filter-btn:hover {
border-color: #bae6fd;
color: var(--sc-primary);
background: #fff;
}
.sc-filter-btn.active {
background: var(--sc-primary-gradient);
color: #ffffff;
border-color: transparent;
box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
}
/* Profile Grid */
.sc-profiles-section {
padding-bottom: 50px;
}
.sc-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
}
/* Profile Card - Fully Clickable */
.sc-card {
background: var(--sc-card-bg);
border-radius: var(--sc-radius);
border: 1px solid var(--sc-border);
box-shadow: var(--sc-shadow-sm);
overflow: hidden;
display: flex;
flex-direction: column;
transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
position: relative;
cursor: pointer;
user-select: none;
}
.sc-card:hover {
transform: translateY(-5px);
box-shadow: var(--sc-shadow-md);
border-color: var(--sc-border-highlight);
}
.sc-card-photo-wrap {
position: relative;
width: 100%;
aspect-ratio: 4 / 4.8;
overflow: hidden;
background: #f1f5f9;
}
.sc-card-photo {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.4s ease;
}
.sc-card:hover .sc-card-photo {
transform: scale(1.05);
}
.sc-badge-online {
position: absolute;
top: 10px;
left: 10px;
background: rgba(15, 23, 42, 0.7);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
color: #ffffff;
font-size: 10px;
font-weight: 700;
padding: 4px 8px;
border-radius: 9999px;
display: inline-flex;
align-items: center;
gap: 5px;
}
.sc-dot-pulse {
width: 7px;
height: 7px;
background-color: var(--sc-online);
border-radius: 50%;
box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.4);
animation: pulseGreen 1.8s infinite;
}
@keyframes pulseGreen {
0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.sc-badge-country {
position: absolute;
top: 10px;
right: 10px;
background: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(6px);
font-size: 15px;
width: 28px;
height: 28px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.sc-card-body {
padding: 14px;
display: flex;
flex-direction: column;
flex-grow: 1;
}
.sc-card-name {
font-size: 17px;
font-weight: 700;
color: var(--sc-text-main);
margin-bottom: 2px;
}
.sc-card-sub {
font-size: 12px;
font-weight: 600;
color: var(--sc-primary);
margin-bottom: 8px;
}
.sc-card-quote {
font-size: 12px;
color: var(--sc-text-muted);
line-height: 1.45;
margin-bottom: 12px;
font-style: italic;
flex-grow: 1;
}
.sc-card-btn {
width: 100%;
background: var(--sc-primary-gradient);
color: #ffffff;
font-size: 13px;
font-weight: 700;
padding: 9px 14px;
border-radius: var(--sc-radius-sm);
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
box-shadow: 0 4px 10px rgba(244, 63, 94, 0.25);
cursor: pointer;
}
/* Chat Modal */
.sc-modal-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(15, 23, 42, 0.65);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
z-index: 1000;
align-items: center;
justify-content: center;
padding: 12px;
}
.sc-modal-overlay.active {
display: flex;
animation: fadeIn 0.2s ease-out;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.sc-chat-box {
width: 100%;
max-width: 420px;
height: 92vh;
max-height: 660px;
background: #ffffff;
border-radius: 20px;
box-shadow: var(--sc-shadow-lg);
display: flex;
flex-direction: column;
overflow: hidden;
position: relative;
animation: popIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes popIn {
from { transform: scale(0.92); opacity: 0; }
to { transform: scale(1); opacity: 1; }
}
.sc-chat-header {
padding: 12px 16px;
background: #ffffff;
border-bottom: 1px solid var(--sc-border);
display: flex;
align-items: center;
justify-content: space-between;
}
.sc-chat-profile-info {
display: flex;
align-items: center;
gap: 10px;
}
.sc-chat-avatar-wrap {
position: relative;
width: 40px;
height: 40px;
}
.sc-chat-avatar {
width: 100%;
height: 100%;
border-radius: 50%;
object-fit: cover;
border: 2px solid #fff;
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.sc-chat-status-dot {
position: absolute;
bottom: 0;
right: 0;
width: 10px;
height: 10px;
background-color: var(--sc-online);
border: 2px solid #fff;
border-radius: 50%;
}
.sc-chat-title {
font-size: 15px;
font-weight: 700;
color: var(--sc-text-main);
line-height: 1.2;
}
.sc-chat-status-text {
font-size: 11px;
color: var(--sc-online);
font-weight: 600;
}
.sc-chat-close-btn {
width: 30px;
height: 30px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: var(--sc-text-muted);
background: #f8fafc;
font-size: 16px;
cursor: pointer;
}
.sc-chat-close-btn:hover {
background: #fee2e2;
color: #ef4444;
}
.sc-chat-ad-container {
margin: 6px 10px;
padding: 6px;
background: #fafafa;
border: 1px dashed #67e8f9;
border-radius: 8px;
text-align: center;
font-size: 11px;
}
.sc-chat-messages {
flex-grow: 1;
padding: 14px;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 10px;
background: #fdfcfa;
}
.sc-msg {
max-width: 82%;
padding: 9px 13px;
border-radius: 16px;
font-size: 13.5px;
line-height: 1.45;
word-break: break-word;
}
.sc-msg-peer {
align-self: flex-start;
background-color: var(--sc-bubble-peer);
color: var(--sc-text-main);
border-bottom-left-radius: 4px;
}
.sc-msg-user {
align-self: flex-end;
background: var(--sc-bubble-user);
color: #ffffff;
border-bottom-right-radius: 4px;
box-shadow: 0 2px 6px rgba(244, 63, 94, 0.25);
}
.sc-chat-input-bar {
padding: 10px 12px;
background: #ffffff;
border-top: 1px solid var(--sc-border);
display: flex;
gap: 8px;
align-items: center;
}
.sc-chat-input {
flex-grow: 1;
padding: 9px 14px;
border-radius: 9999px;
border: 1px solid #e2e8f0;
outline: none;
font-family: inherit;
font-size: 13.5px;
}
.sc-chat-input:focus {
border-color: var(--sc-primary);
}
.sc-chat-send-btn {
width: 38px;
height: 38px;
border-radius: 50%;
background: var(--sc-primary-gradient);
color: #ffffff;
display: flex;
align-items: center;
justify-content: center;
font-size: 15px;
cursor: pointer;
}
.sc-chat-disclaimer {
font-size: 10px;
color: #94a3b8;
text-align: center;
padding: 4px 10px 8px;
background: #ffffff;
}
/* Floating Overlay Popup Modal */
#mcPopOverlay {
position: fixed;
left: 0;
top: 0;
right: 0;
bottom: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,.75);
z-index: 999999999;
display: flex;
align-items: center;
justify-content: center;
padding: 15px;
box-sizing: border-box;
}
#mcPopCard {
position: relative;
width: 390px;
max-width: 100%;
max-height: 95vh;
overflow-y: auto;
background: #fff;
border-radius: 20px;
box-shadow: 0 15px 60px rgba(0,0,0,.5);
text-align: center;
font-family: inherit;
padding-bottom: 12px;
}
.mcPopClose {
position: absolute;
right: 12px;
top: 12px;
width: 34px;
height: 34px;
border: 0;
border-radius: 50%;
background: rgba(0,0,0,.65);
color: #fff;
font-size: 22px;
line-height: 32px;
z-index: 20;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.2s;
}
.mcPopClose:hover {
background: rgba(239,68,68,0.9);
}
.mcPopImg {
display: block;
width: 100%;
height: 270px;
object-fit: cover;
border-radius: 20px 20px 0 0;
}
.mcPopName {
font-size: 22px;
font-weight: 800;
color: #111;
margin: 14px 10px 4px;
}
.mcPopOnline {
font-size: 13px;
color: #20b957;
font-weight: 600;
margin-bottom: 10px;
}
.mcPopText {
font-size: 14px;
color: #64748b;
margin: 0 18px 14px;
line-height: 1.5;
}
.mcPopButton {
display: block;
margin: 0 18px 14px;
padding: 13px 18px;
border-radius: 50px;
background: #25D366;
color: #fff !important;
text-decoration: none !important;
font-size: 15px;
font-weight: bold;
box-shadow: 0 4px 14px rgba(37,211,102,0.4);
transition: all 0.2s ease;
}
.mcPopButton:hover {
background: #20ba59;
transform: translateY(-1px);
}
.mcPopAd {
width: 100%;
min-height: 50px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
overflow: hidden;
margin: 8px 0;
padding: 0 10px;
}
/* Master Direct Link hidden container */
#master-direct-link-container {
display: none;
}
/* Footer */
.sc-footer {
background: #0f172a;
color: #94a3b8;
padding: 50px 0 26px;
margin-top: 40px;
border-top: 1px solid #1e293b;
}
.sc-footer-top {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
margin-bottom: 28px;
}
.sc-footer-logo {
display: inline-flex;
align-items: center;
gap: 8px;
font-size: 20px;
font-weight: 800;
color: #ffffff;
margin-bottom: 6px;
}
.sc-footer-tagline {
font-size: 14px;
color: #cbd5e1;
margin-bottom: 10px;
}
.sc-footer-badge {
font-size: 11px;
font-weight: 700;
color: #0ea5a4;
background: rgba(244, 63, 94, 0.1);
border: 1px solid rgba(244, 63, 94, 0.2);
padding: 4px 12px;
border-radius: 9999px;
display: inline-block;
margin-bottom: 20px;
}
.sc-footer-nav {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 16px;
margin-bottom: 24px;
}
.sc-footer-link {
font-size: 13px;
color: #94a3b8;
}
.sc-footer-bottom {
text-align: center;
font-size: 12px;
color: #64748b;
border-top: 1px solid #1e293b;
padding-top: 20px;
}
/* Responsive Media Queries */
@media (max-width: 1024px) {
.sc-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (max-width: 768px) {
.sc-nav-desktop { display: none; }
.sc-hamburger { display: flex; }
.sc-hero-title { font-size: 28px; }
}
@media (max-width: 640px) {
.sc-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.sc-card-body { padding: 10px 8px; }
.sc-card-name { font-size: 15px; }
.sc-card-sub { font-size: 11px; }
.sc-card-quote { font-size: 11px; margin-bottom: 8px; }
.sc-card-btn { padding: 7px 8px; font-size: 12px; }
.sc-chat-box { height: 96vh; max-height: 96vh; border-radius: 16px; }
#mcPopCard { width: 100%; border-radius: 16px; }
.mcPopImg { height: 230px; border-radius: 16px 16px 0 0; }
}

/* Soft aqua-lavender light gradient refresh */
body { background: linear-gradient(145deg, #f0fdfa 0%, #f8fafc 48%, #eef2ff 100%); }
:root { --sc-bg: #f8fbff; --sc-card-bg: rgba(255,255,255,.96); --sc-border: #dbeafe; }

/* ===== MOBILE SAFETY PATCH ===== */
html, body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}
body {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
#site-content, main, .sc-container, .sc-header-inner,
.sc-hero, .sc-grid, .sc-footer, .sc-section {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
iframe {
  max-width: 100% !important;
}
[id*="ad"], [class*="ad"], .widget-content {
  max-width: 100%;
}
@media (max-width: 480px) {
  .sc-container { padding-left: 12px; padding-right: 12px; }
  .sc-header-inner { height: 58px; }
  .sc-logo { font-size: 18px; }
  .sc-logo-icon { width: 32px; height: 32px; font-size: 17px; }
  .sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .sc-card { min-width: 0; width: 100%; }
  .sc-card img { max-width: 100%; }
  .sc-hero-title { font-size: 25px !important; line-height: 1.2; }
  .sc-hero-subtitle { font-size: 14px !important; }
  .sc-chat-box { width: calc(100% - 16px) !important; max-width: calc(100% - 16px) !important; margin: 8px auto; }
  #mcPopCard { width: calc(100% - 16px) !important; max-width: calc(100% - 16px) !important; margin: 8px auto; }
  .sc-mobile-drawer { width: 100%; max-width: 100%; }
  .sc-whatsapp-btn { max-width: 100%; }
}
/* Keep 320x50 ad responsive on small screens */
[id^="k90nxa"], [id^="k90nxa"] iframe {
  max-width: 100% !important;
}
