/* RSK Tools Plugin Styles */
:root {
    --primary-color: #6366f1;
    --secondary-color: #f1f5f9;
    --accent-color: #06d6a0;
    --text-color: #1f2937;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
}

/* Container */
.rsk-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Modern Hero Section */
.rsk-hero-modern {
    background: var(--gradient-primary);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.rsk-hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* Tools Slider */
.tools-slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
}

.tools-slider {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-content {
    text-align: center;
    padding: 2rem;
}

.slide-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.slide h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.slide p {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.slide-btn {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.slide-btn:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
    color: white;
}

.slider-dots {
    text-align: center;
    margin-top: 2rem;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: white;
    transform: scale(1.2);
}

/* Header Styles */
.rsk-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.rsk-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rsk-logo {
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
}

.rsk-nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.rsk-nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.rsk-nav-menu a:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

/* AdSense Styles */
.rsk-adsense-top,
.rsk-adsense-hero,
.rsk-adsense-middle,
.rsk-adsense-bottom {
    margin: 20px 0;
    text-align: center;
    min-height: 100px;
    background: var(--secondary-color);
    border: 2px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    position: relative;
}

.rsk-adsense-hero {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

/* Tools Showcase Section */
.rsk-tools-showcase {
    padding: 5rem 0;
    background: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.3rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Modern Tools Grid */
.tools-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.tool-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.tool-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.tool-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.tool-card:hover h3 {
    color: var(--primary-color);
}

.tool-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1rem;
}

.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tool-tags span {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.tool-btn {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.tool-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.tool-btn:hover::before {
    left: 100%;
}

.tool-btn:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
    color: white;
}

/* SEO Content */
.seo-content {
    margin-top: 5rem;
    padding: 3rem;
    background: var(--secondary-color);
    border-radius: 20px;
}

.seo-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
}

.seo-content > p {
    font-size: 1.2rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.content-block {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.content-block h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.content-block p {
    color: #6b7280;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.tool-card {
    animation: fadeInUp 0.6s ease-out;
}

.tool-card:nth-child(1) { animation-delay: 0.1s; }
.tool-card:nth-child(2) { animation-delay: 0.2s; }
.tool-card:nth-child(3) { animation-delay: 0.3s; }
.tool-card:nth-child(4) { animation-delay: 0.4s; }
.tool-card:nth-child(5) { animation-delay: 0.5s; }
.tool-card:nth-child(6) { animation-delay: 0.6s; }
.tool-card:nth-child(7) { animation-delay: 0.7s; }
.tool-card:nth-child(8) { animation-delay: 0.8s; }
.tool-card:nth-child(9) { animation-delay: 0.9s; }
.tool-card:nth-child(10) { animation-delay: 1.0s; }
.tool-card:nth-child(11) { animation-delay: 1.1s; }
.tool-card:nth-child(12) { animation-delay: 1.2s; }

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .tools-grid-modern {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tool-card {
        padding: 2rem;
    }
    
    .seo-content {
        padding: 2rem;
        margin-top: 3rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .tool-card {
        padding: 1.5rem;
    }
    
    .tool-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}

/* Tool Pages */
.rsk-tool-page {
    padding: 2rem 0;
    min-height: 80vh;
}

.rsk-tool-header {
    text-align: center;
    margin-bottom: 3rem;
}

.rsk-tool-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.rsk-tool-header p {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

.rsk-tool-container {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

/* Form Styles */
.rsk-form-group {
    margin-bottom: 1.5rem;
}

.rsk-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.rsk-input,
.rsk-textarea,
.rsk-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.rsk-input:focus,
.rsk-textarea:focus,
.rsk-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.rsk-textarea {
    min-height: 120px;
    resize: vertical;
}

.rsk-file-input {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rsk-file-input:hover {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.rsk-button {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.rsk-button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.rsk-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* Social Media Generators */
.rsk-social-preview {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.facebook-post {
    background: white;
    border-radius: 8px;
    border: 1px solid #e4e6ea;
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
    font-family: system-ui, -apple-system, sans-serif;
}

.facebook-header {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.facebook-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ccc;
}

.facebook-user-info h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1c1e21;
}

.facebook-time {
    font-size: 12px;
    color: #65676b;
    margin-top: 2px;
}

.facebook-content {
    padding: 0 16px;
    font-size: 14px;
    color: #1c1e21;
    line-height: 1.33;
}

.facebook-image {
    width: 100%;
    margin-top: 12px;
}

.facebook-stats {
    padding: 12px 16px;
    border-top: 1px solid #e4e6ea;
    font-size: 12px;
    color: #65676b;
    display: flex;
    justify-content: space-between;
}

.facebook-actions {
    padding: 8px 16px;
    border-top: 1px solid #e4e6ea;
    display: flex;
    justify-content: space-around;
}

.facebook-action {
    color: #65676b;
    font-size: 13px;
    font-weight: 500;
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.facebook-action:hover {
    background: #f2f2f2;
}

/* WhatsApp Chat */
.whatsapp-chat {
    background: #e5ddd5;
    border-radius: 12px;
    padding: 20px;
    max-width: 400px;
    margin: 0 auto;
    min-height: 400px;
    font-family: system-ui, -apple-system, sans-serif;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80" fill="%23ffffff" opacity="0.05"><circle cx="40" cy="40" r="3"/></svg>');
}

.whatsapp-message {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-end;
}

.whatsapp-message.sent {
    justify-content: flex-end;
}

.whatsapp-bubble {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 18px;
    position: relative;
    font-size: 14px;
    line-height: 1.4;
}

.whatsapp-message.received .whatsapp-bubble {
    background: white;
    border-bottom-left-radius: 4px;
}

.whatsapp-message.sent .whatsapp-bubble {
    background: #dcf8c6;
    border-bottom-right-radius: 4px;
}

.whatsapp-time {
    font-size: 11px;
    color: #667781;
    margin-left: 8px;
    margin-top: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rsk-container {
        padding: 0 15px;
    }
    
    .rsk-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .rsk-nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .rsk-hero-slider h1 {
        font-size: 2rem;
    }
    
    .rsk-tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .rsk-tool-container {
        padding: 1.5rem;
    }
    
    .facebook-post,
    .whatsapp-chat {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .rsk-hero-slider h1 {
        font-size: 1.8rem;
    }
    
    .rsk-section-title {
        font-size: 2rem;
    }
    
    .rsk-tool-card {
        padding: 1.5rem;
    }
}

/* Loading Spinner */
.rsk-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rsk-tool-card {
    animation: fadeInUp 0.5s ease-out;
}

.rsk-tool-card:nth-child(2) { animation-delay: 0.1s; }
.rsk-tool-card:nth-child(3) { animation-delay: 0.2s; }
.rsk-tool-card:nth-child(4) { animation-delay: 0.3s; }
.rsk-tool-card:nth-child(5) { animation-delay: 0.4s; }
.rsk-tool-card:nth-child(6) { animation-delay: 0.5s; }

/* Footer */
.rsk-footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.rsk-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.rsk-footer-section h3 {
    margin-bottom: 1rem;
    color: white;
}

.rsk-footer-section a {
    color: #d1d5db;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.rsk-footer-section a:hover {
    color: white;
}

.rsk-footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}