/* FratSnap Main CSS */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #008B8B, #20B2AA);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h1 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-image {
    height: 80px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.user-email {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 0.9;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content */
.main-content {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #008B8B, #20B2AA);
    color: white;
    padding: 80px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 600px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.hero-logo-image {
    height: 180px;
    width: auto;
    max-width: 500px;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 40px;
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Polaroid Demo */
.polaroid-demo {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.polaroid-frame {
    background: white;
    padding: 20px 20px 60px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.polaroid-frame:hover {
    transform: rotate(0deg) scale(1.05);
}

.polaroid-photo {
    width: 100%;
    height: 200px;
    background: #f0f0f0;
    border-radius: 4px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.placeholder-photo {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #e0e0e0, #f5f5f5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ccc;
}

.polaroid-text {
    text-align: center;
    color: #008B8B;
}

.org-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.party-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 5px;
}

.event-date {
    font-weight: 400;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Polaroid Carousel */
.polaroid-carousel {
    display: flex;
    flex-direction: column;
    align-items: center;
    perspective: 1000px;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 350px;
    min-width: 300px;
    height: 500px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    transform: rotate(-2deg);
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide:nth-child(2) {
    transform: rotate(1deg);
}

.carousel-slide:nth-child(3) {
    transform: rotate(-1deg);
}

.polaroid-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

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

.dot.active,
.dot:hover {
    background-color: #008B8B;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #008B8B, #20B2AA);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 139, 139, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 139, 139, 0.4);
}

.btn-secondary {
    background: white;
    color: #008B8B;
    border: 2px solid #008B8B;
}

.btn-secondary svg {
    color: #008B8B;
}

.btn-secondary:hover {
    background: #008B8B;
    color: white;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: 2px solid #dc3545;
}

.btn-danger:hover {
    background: #c82333;
    border-color: #bd2130;
    color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 5px 0;
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    font-size: 0.75rem;
    padding: 5px;
    transition: color 0.3s ease;
}

.bottom-nav-item:hover {
    color: #008B8B;
}

.bottom-nav-item .nav-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 2px;
    stroke: #008B8B;
    transition: stroke 0.3s ease;
}

.bottom-nav-item:hover .nav-icon {
    stroke: #006666;
}

/* Features Section */
.features-section {
    padding: 80px 20px;
    background: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: 12px;
    background: #f8f9fa;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #008B8B, #20B2AA);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-weight: 600;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #008B8B;
    box-shadow: 0 0 0 3px rgba(0, 139, 139, 0.1);
}

/* Password Input Container */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input {
    padding-right: 50px; /* Make room for the eye icon */
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.password-toggle:hover {
    background-color: #f0f0f0;
}

.password-toggle:active {
    background-color: #e0e0e0;
}

.eye-icon {
    font-size: 16px;
    user-select: none;
}

.greek-keyboard-toggle {
    margin-top: 10px;
}

.greek-keyboard-toggle button {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.greek-keyboard-toggle button:hover {
    background: #008B8B;
    color: white;
    border-color: #008B8B;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85rem;
}

/* Location Picker Styles */
.location-picker {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background: #f9f9f9;
}

.location-options {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-outline {
    background: transparent;
    border: 1px solid #008B8B;
    color: #008B8B;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #008B8B;
    color: white;
}

.map-container {
    margin-top: 15px;
}

.map {
    width: 100%;
    height: 300px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9rem;
}

.map-controls {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: flex-end;
}

.manual-location {
    margin-top: 15px;
}

.selected-location {
    margin-top: 15px;
    padding: 10px;
    background: white;
    border: 1px solid #008B8B;
    border-radius: 6px;
}

.location-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.location-info span {
    font-weight: 500;
    color: #333;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .location-options {
        flex-direction: column;
    }
    
    .map {
        height: 250px;
    }
    
    .map-controls {
        flex-direction: column;
    }
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.footer-content p {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 40px;
        transition: left 0.3s ease;
        z-index: 1001;
    }
    
    .nav-menu.active {
        left: 0 !important;
        display: flex !important;
    }
    
    .nav-menu .nav-link {
        font-size: 24px;
        padding: 20px;
        margin: 10px 0;
        color: white;
        text-decoration: none;
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .nav-user {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding: 60px 20px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .carousel-container {
        min-width: 280px;
        max-width: 320px;
        height: 450px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
}

/* Logo Preview Styles */
.logo-preview {
    position: relative;
    display: inline-block;
    margin-top: 10px;
    border: 2px solid #008B8B;
    border-radius: 8px;
    padding: 10px;
    background: white;
}

.logo-preview img {
    max-width: 150px;
    max-height: 150px;
    display: block;
    border-radius: 4px;
}

.remove-logo-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.remove-logo-btn:hover {
    background: #cc0000;
}

/* Tabs Styles */
.tabs-container {
    margin: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.tabs {
    display: flex;
    gap: 0;
}

.tab-button {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.tab-button:hover {
    color: #008B8B;
    background-color: #f8f9fa;
}

.tab-button.active {
    color: #008B8B;
    border-bottom-color: #008B8B;
    background-color: #fff;
}

.tab-content {
    margin-top: 20px;
}

/* Event badges for attended events */
.event-badges {
    margin-top: 8px;
    display: flex;
    gap: 8px;
}

.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-creator {
    background-color: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.badge-attended {
    background-color: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

/* Hero Button Styles */
.hero-buttons .btn {
    min-width: 140px;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
}
