/* =========================================================
   SEO Rank Master - Premium Aesthetics & Layout
========================================================= */

/* --- Layout Spacing Request (2px Gaps) --- */
#seo-rank-master-intro {
    background: transparent;
    padding: 0;
    margin-top: 2px !important;
    /* 2px below Standard Hero */
    margin-bottom: 40px !important;
    /* Gap above Tools Section */
}

/* --- Heading Overrides --- */
/* Target: "Free Online Multi Tools..." in Main Content */
#tools.categories h2 {
    color: #FFFFFF !important;
    text-align: center !important;
    font-weight: 700;
    margin-bottom: 30px;
    margin-top: 5px;
    /* Added spacing */
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* Target: All Category Headings (Audio, Video, Text, Developer, etc.) */
.categories h3 {
    color: var(--dt-luxury-yellow) !important;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}


/* =========================================================
   1. SEO Rank Master Hero Strip (The "Lets AI Build" Box)
========================================================= */
.srm-hero-strip {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    padding: 3rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.7);
    max-width: 1200px;
    margin: 0 auto;
}

/* Background Glow Effect */
.srm-hero-strip::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.03) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    animation: pulseGlow 8s infinite ease-in-out;
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.srm-content {
    position: relative;
    z-index: 2;
}

/* Typography */
.srm-tagline {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--dt-luxury-yellow);
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
}

.srm-headline {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    background: linear-gradient(to right, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Added standard property */
}

.srm-subheadline {
    color: #ccc;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

/* --- 2-Card Action Grid --- */
.srm-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.srm-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #e5e7eb20;
    border-radius: 12px;
    padding: 24px;
    max-width: 420px;
    margin: 0 auto;
    text-align: left;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.srm-card:hover {
    background: rgba(255, 215, 0, 0.03);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.srm-card-icon {
    font-size: 1.75rem;
    color: var(--dt-luxury-yellow);
    margin-bottom: 1rem;
    display: inline-block;
}

.srm-card-icon.secondary {
    color: #60a5fa;
}

.srm-card-content h3 {
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
}

.srm-card-content p {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.srm-card-btn {
    background: transparent;
    color: var(--dt-luxury-yellow);
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
}

.srm-card:hover .srm-card-btn {
    gap: 12px;
}

.srm-card-btn.secondary {
    color: #60a5fa;
}

.srm-card:hover .srm-card-btn.secondary {
    color: #93c5fd;
}


/* =========================================================
   2. AI Plan Builder Modal (Slide-over / Popup)
========================================================= */
.srm-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.srm-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.srm-modal-panel {
    background: #111;
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    border: 1px solid #333;
    padding: 0;
    position: relative;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.srm-modal-backdrop.active .srm-modal-panel {
    transform: translateY(0);
}

/* Modal Header */
.srm-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #151515;
}

.srm-modal-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.srm-modal-close {
    background: transparent;
    border: none;
    color: #666;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.srm-modal-close:hover {
    color: #fff;
}

/* Modal Body */
.srm-modal-body {
    padding: 2rem;
}

.srm-form-group {
    margin-bottom: 1.5rem;
}

.srm-label {
    display: block;
    color: #aaa;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.srm-input,
.srm-select {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    outline: none;
}

.srm-input:focus,
.srm-select:focus {
    border-color: var(--dt-luxury-yellow);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.1);
}

/* Modal Footer & Action */
.srm-submit-btn {
    width: 100%;
    background: var(--dt-luxury-yellow);
    color: #000;
    border: none;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.srm-submit-btn:hover {
    background: #ffdb1a;
}

/* Loading / Success Simulation Styles */
.srm-processing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.srm-processing-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.srm-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    border-top-color: var(--dt-luxury-yellow);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.srm-status-text {
    color: var(--dt-luxury-yellow);
    font-family: monospace;
    font-size: 1rem;
}