/* .NET Conf 2025 SA Custom Styles */

:root {
    --primary-purple: #512bd4;
    --secondary-purple: #6c3dd8;
    --light-purple: #8454e4;
    --dark-purple: #3b1f99;
    --accent-pink: #e63888;
    --dark-bg: #1a1a2e;
    --light-bg: #f8f9fa;
    --track-1-color: #512bd4;
    --track-2-color: #6c3dd8;
    --track-3-color: #e63888;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-purple) 0%, var(--accent-pink) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(81, 43, 212, 0.4);
}

.btn-outline-primary {
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
    padding: 10px 28px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline-primary:hover {
    background: var(--primary-purple);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(81, 43, 212, 0.3);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(81, 43, 212, 0.5), rgba(230, 56, 136, 0.4)), url('../img/hero/dotnethero.png');
    background-size: cover;
    background-position: 15% 10%;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: white;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    width: 100%;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.back-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: white;
}

.back-link i {
    transition: transform 0.3s;
}

.back-link:hover i {
    transform: translateX(-5px);
}

.hero-section h1,
.hero-section h2 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-section .lead {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* Stat Boxes */
.stat-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px 20px;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.stat-box i {
    color: rgba(255, 255, 255, 0.9);
}

/* Countdown Timer */
.countdown {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-item {
    text-align: center;
    padding: 0 15px;
}

.countdown-number {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 5px;
}

.countdown-label {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* About Section */
.about-section {
    background: white;
}

.about-section p {
    font-size: 1.05rem;
}

/* Registration Cards */
.register-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(81, 43, 212, 0.15);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.register-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(81, 43, 212, 0.25);
}

.register-card.active {
    border: 3px solid var(--primary-purple);
    box-shadow: 0 10px 30px rgba(81, 43, 212, 0.3);
}

.register-card-header {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.register-card-header i {
    opacity: 0.9;
}

.register-card-body {
    padding: 30px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.register-card-body ul {
    margin-bottom: 20px;
}

.register-card-body ul li {
    padding: 8px 0;
    font-size: 0.95rem;
}

.register-card-body .btn {
    margin-top: auto;
}

/* Coming Soon Box */
.coming-soon-box {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 15px;
    padding: 60px 30px;
    text-align: center;
}

.coming-soon-box i {
    color: #6c757d;
}

.coming-soon-box h3 {
    margin-top: 10px;
    color: #495057;
}

.coming-soon-box p {
    color: #6c757d;
    margin-bottom: 0;
}

/* Call for Speakers Box */
.cfs-box {
    background: linear-gradient(135deg, rgba(81, 43, 212, 0.1) 0%, rgba(230, 56, 136, 0.1) 100%);
    border: 2px solid var(--primary-purple);
    border-radius: 15px;
    padding: 40px 30px;
}

/* Schedule Section */
.schedule-section {
    background: white;
}

.nav-pills .nav-link {
    color: var(--primary-purple);
    border: 2px solid transparent;
    border-radius: 25px;
    padding: 10px 30px;
    margin: 0 5px;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-pills .nav-link:hover {
    background: rgba(81, 43, 212, 0.1);
}

.nav-pills .nav-link.active {
    background: var(--primary-purple);
    color: white;
    border-color: var(--primary-purple);
}

/* Schedule Grid */
.schedule-grid {
    margin-top: 30px;
}

.schedule-row {
    margin-bottom: 15px;
}

.schedule-row .row {
    display: flex;
}

/* Johannesburg specific spacing */
.schedule-row.jhb-spacing .row {
    margin-bottom: 15px;
}

.schedule-row.jhb-spacing .row:last-child {
    margin-bottom: 0;
}

.schedule-row .row > [class*="col-"] {
    display: flex;
}

.schedule-row .row > [class*="col-"] .schedule-item {
    width: 100%;
}

.schedule-full-width {
    background: var(--primary-purple);
    color: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-bottom: 15px;
    border: 3px solid var(--primary-purple);
}

.schedule-full-width h4 {
    color: white;
    margin-bottom: 5px;
}

.schedule-full-width p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.track-title {
    text-align: center;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    color: white;
    font-weight: bold;
}

.track-title.track-1 {
    background: var(--track-1-color);
}

.track-title.track-2 {
    background: var(--track-2-color);
}

.track-title.track-3 {
    background: var(--track-3-color);
}

.schedule-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    gap: 20px;
    transition: all 0.3s;
    min-height: 120px;
    align-items: flex-start;
}

.schedule-item:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 3px 10px rgba(81, 43, 212, 0.1);
}

.schedule-item.break {
    background: #f8f9fa;
    border-style: dashed;
}

.schedule-time {
    font-weight: bold;
    color: var(--primary-purple);
    white-space: nowrap;
    font-size: 0.95rem;
}

.schedule-details h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #333;
    cursor: pointer;
    transition: color 0.2s;
}

.schedule-details h4:hover {
    color: var(--primary-purple);
}

.schedule-details h4 i {
    font-size: 0.85rem;
    margin-left: 5px;
    opacity: 0.6;
}

.schedule-details p {
    font-size: 0.9rem;
}

.schedule-track-label {
    display: none;
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--primary-purple);
    margin-bottom: 8px;
    padding: 4px 12px;
    background: rgba(81, 43, 212, 0.1);
    border-radius: 5px;
}

/* Speakers Section */
.speakers-section {
    background: var(--light-bg);
}

.speaker-card {
    text-align: center;
    padding: 20px;
    transition: all 0.3s;
}

.speaker-card:hover {
    transform: translateY(-5px);
}

.speaker-card img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    display: block;
    border: 4px solid var(--primary-purple);
    box-shadow: 0 5px 20px rgba(81, 43, 212, 0.2);
    transition: all 0.3s;
}

.speaker-card:hover img {
    border-color: var(--accent-pink);
    box-shadow: 0 8px 30px rgba(230, 56, 136, 0.3);
    transform: scale(1.05);
}

.speaker-card-body {
    padding: 0;
}

.speaker-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-purple);
}

.speaker-card .speaker-name-first {
    display: block;
    font-size: 1.1rem;
    font-weight: 400;
    color: #333;
}

.speaker-card .speaker-name-last {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-top: 5px;
}

.speaker-card .speaker-title {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 15px;
    min-height: 40px;
}

.speaker-card .social-links a {
    color: var(--primary-purple);
    margin: 0 8px;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.speaker-card .social-links a:hover {
    color: var(--accent-pink);
    transform: scale(1.2);
}

/* Clickable speaker cards */
.speaker-card.clickable,
.speaker-card:has(.clickable-speaker) {
    transition: transform 0.3s, box-shadow 0.3s;
}

.speaker-card.clickable:hover,
.speaker-card:has(.clickable-speaker):hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(81, 43, 212, 0.2);
}

.speaker-card .clickable-speaker {
    transition: opacity 0.3s;
}

.speaker-card:has(.clickable-speaker):hover img {
    opacity: 0.9;
}

/* Speaker modal specific styles */
.speaker-modal .session-modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.speaker-social-links a {
    text-decoration: none;
}

/* Sponsors Section */
.sponsors-section {
    background: white;
}

.sponsor-tier {
    margin-bottom: 50px;
}

.sponsor-tier h3 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-purple);
}

.sponsor-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s;
    min-height: 120px;
}

.sponsor-logo:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 5px 15px rgba(81, 43, 212, 0.1);
}

.sponsor-logo img {
    max-width: 100%;
    max-height: 80px;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.sponsor-logo:hover img {
    filter: grayscale(0%);
}

/* Footer */
.footer-section {
    background: linear-gradient(135deg, var(--dark-purple) 0%, var(--primary-purple) 100%);
}

.footer-section a {
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 40px;
        background-attachment: scroll;
        min-height: 60vh;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .countdown-item {
        padding: 0 10px;
    }
    
    .schedule-item {
        flex-direction: column;
        gap: 10px;
        min-height: auto;
    }
    
    .schedule-time {
        white-space: normal;
    }
    
    .nav-pills .nav-link {
        margin: 5px;
        padding: 8px 20px;
    }
    
    /* Fix schedule rows for mobile */
    .schedule-row .row {
        display: block;
    }
    
    .schedule-row .row > [class*="col-"] {
        display: block;
        margin-bottom: 15px;
    }
    
    .schedule-row .row > [class*="col-"] .schedule-item {
        width: 100%;
    }
    
    /* Track titles stack nicely */
    .track-title {
        margin-bottom: 10px;
        display: none;
    }
    
    /* Show track labels on mobile */
    .schedule-track-label {
        display: inline-block !important;
    }
}

@media (max-width: 576px) {
    .stat-box {
        padding: 20px 15px;
    }
    
    .register-card-header,
    .register-card-body {
        padding: 20px 15px;
    }
    
    .coming-soon-box {
        padding: 40px 20px;
    }
}

/* Session Description Modal */
.session-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow-y: auto;
}

.session-modal.show,
.session-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.session-modal-content {
    background: white;
    border-radius: 15px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(81, 43, 212, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.session-modal-header {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 15px 15px 0 0;
    position: relative;
}

.session-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    padding-right: 40px;
}

.session-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.session-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.session-modal-body {
    padding: 30px;
}

.session-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.session-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.95rem;
}

.session-meta-item i {
    color: var(--primary-purple);
}

.session-description {
    color: #444;
    line-height: 1.7;
    white-space: pre-wrap;
}

@media (max-width: 576px) {
    .session-modal-content {
        max-height: 95vh;
        margin: 10px;
    }
    
    .session-modal-header {
        padding: 20px;
    }
    
    .session-modal-header h3 {
        font-size: 1.2rem;
    }
    
    .session-modal-body {
        padding: 20px;
    }
}
