/* Opći stilovi */
* {
    box-sizing: border-box;
}
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f4e8;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigacija */
nav {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ff6b6b;
    font-weight: bold;
    font-size: 24px;
}

.brand-icon {
    font-size: 1.2em;
    margin-right: 5px;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 16px;
}

.nav-links a:hover {
    color: #ff6b6b;
}

.nav-links .nav-cta {
    background-color: #ff6b6b;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
}

.nav-links .nav-cta:hover {
    background-color: #e05a5a;
    color: white;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #555;
}

/* Header/Hero sekcija */
header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff9d9d 100%);
    color: white;
    padding: 70px 0 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.logo {
    font-size: 3.5em;
    margin: 0;
    letter-spacing: -1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.tagline {
    font-size: 1.5em;
    margin: 15px 0 30px;
    font-weight: 300;
}

.hero-cta {
    background-color: white;
    color: #ff6b6b;
    font-weight: bold;
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 18px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-top: 20px;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.hero-stats {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-item {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 15px 25px;
    border-radius: 10px;
    min-width: 150px;
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
}

.stat-label {
    font-size: 14px;
    margin: 5px 0 0;
}

.header-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #f9f4e8;
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

/* Stilovi za početnu stranicu */
.landing-page {
    text-align: center;
    padding: 60px 20px;
}

.section {
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 20px;
}

.section-header {
    margin-bottom: 50px;
}

.section-title {
    color: #ff6b6b;
    font-size: 2.2em;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #ff6b6b;
}

.section-subtitle {
    color: #666;
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto;
}

/* Intro sekcija */
.intro-section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 90px;
}

.intro-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.intro-image {
    flex: 1;
    min-width: 300px;
    background-color: #fff2f2;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.15);
}

.intro-heading {
    color: #ff6b6b;
    font-size: 2.5em;
    margin-bottom: 15px;
    line-height: 1.2;
}

.intro-subheading {
    color: #888;
    font-size: 1.2em;
    margin-bottom: 25px;
}

.intro-text {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #555;
}

blockquote {
    font-style: italic;
    color: #555;
    background: #fff;
    padding: 25px;
    border-left: 4px solid #ff6b6b;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    max-width: 800px;
}

blockquote:before {
    content: '"';
    position: absolute;
    top: 5px;
    left: 10px;
    font-size: 60px;
    color: rgba(255, 107, 107, 0.2);
}

/* Kako funkcionira sekcija */
.how-it-works {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    padding: 50px 30px;
    margin-bottom: 90px;
}

.steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.step-item {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    padding: 30px 20px;
    background: #fff9f9;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.step-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff6b6b;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    border: 3px solid white;
}

.step-icon {
    font-size: 40px;
    margin-bottom: 20px;
    color: #ff6b6b;
}

.step-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.step-desc {
    font-size: 15px;
    line-height: 1.5;
    color: #666;
}

/* Za koga je sekcija */
.target-users {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.user-type {
    flex: 1;
    min-width: 220px;
    max-width: 240px;
    background: #fff;
    padding: 25px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.user-type:hover {
    border-bottom: 3px solid #ff6b6b;
    transform: translateY(-5px);
}

.user-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.user-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #444;
}

.user-desc {
    font-size: 14px;
    color: #777;
    line-height: 1.4;
}

/* CTA sekcija */
.cta-section {
    background: linear-gradient(135deg, #ff9d9d 0%, #ff6b6b 100%);
    padding: 60px 20px;
    border-radius: 12px;
    color: white;
    text-align: center;
    margin: 80px auto;
    max-width: 900px;
}

.cta-title {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background-color: white;
    color: #ff6b6b;
    font-weight: bold;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 18px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Botuni */
.try-btn {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    font-weight: bold;
}

.try-btn:hover {
    background-color: #e05a5a;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

/* Stilovi za stranicu s profilima pasa */
.app-page {
    display: none; /* Inicijalno sakriveno */
    max-width: 1100px;
    margin: 0 auto;
}

.back-btn {
    background-color: #666;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 20px;
    display: inline-block;
    text-decoration: none;
    transition: background-color 0.3s;
}

.back-btn:hover {
    background-color: #555;
}

/* Tab navigacija */
.tab-container {
    display: flex;
    margin-bottom: 30px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tab-btn {
    flex: 1;
    padding: 15px;
    border: none;
    background: #f0f0f0;
    color: #555;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.active-tab {
    background: #ff6b6b;
    color: white;
}

/* Swipe prikaz */
#swipe-view {
    text-align: center;
    padding: 20px 0;
}

.swipe-card {
    width: 300px;
    height: 520px; /* Povećana visina */
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.swipe-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.swipe-age {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff6b6b;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.swipe-info {
    padding: 20px;
}

.swipe-name {
    margin: 0 0 5px;
    color: #333;
    font-size: 24px;
}

.swipe-breed {
    margin: 0 0 15px;
    color: #666;
    font-size: 16px;
}

.swipe-description {
    margin: 0 0 15px;
    color: #444;
    font-size: 15px;
    line-height: 1.5;
}

.swipe-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
}

.swipe-tag {
    font-size: 12px;
    padding: 3px 8px;
    background-color: #ffe8e8;
    color: #ff6b6b;
    border-radius: 20px;
}

.swipe-actions {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 5px 0;
    background: linear-gradient(to top, rgba(255,255,255,1) 60%, rgba(255,255,255,0.8) 80%, rgba(255,255,255,0));
}

.swipe-actions button {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: white;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swipe-dislike {
    color: #ff4f4f;
}

.swipe-dislike:hover {
    background: #ffeded;
    transform: scale(1.1);
}

.swipe-like {
    color: #43b572;
}

.swipe-like:hover {
    background: #e6f7ee;
    transform: scale(1.1);
}

.swipe-help {
    text-align: center;
    margin-top: 25px;
    color: #666;
    font-style: italic;
}

/* Pretraživanje po kategorijama */
#search-view {
    display: none;
}

.filter-section {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-title {
    margin-top: 0;
    color: #ff6b6b;
    margin-bottom: 15px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-options select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    flex: 1;
    min-width: 150px;
}

.filter-options button {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold;
}

.filter-options button:hover {
    background-color: #e05a5a;
}

.dogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.dog-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.dog-card:hover {
    transform: translateY(-8px);
}

.dog-img {
    height: 200px;
    width: 100%;
    position: relative;
}

.dog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dog-age {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff6b6b;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.dog-info {
    padding: 20px;
}

.dog-name {
    margin-top: 0;
    margin-bottom: 5px;
    color: #ff6b6b;
    font-size: 22px;
}

.dog-breed {
    color: #666;
    margin-bottom: 12px;
    font-size: 16px;
}

.dog-description {
    color: #444;
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 15px;
}

.dog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.dog-tag {
    font-size: 12px;
    padding: 4px 10px;
    background-color: #ffe8e8;
    color: #ff6b6b;
    border-radius: 20px;
}

.match-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #ff6b6b;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 600;
}

.match-btn:hover {
    background-color: #e05a5a;
}

/* Uspješne veze stranica */
.success-page {
    display: none;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.page-title {
    color: #ff6b6b;
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 10px;
}

.page-subtitle {
    color: #666;
    font-size: 1.2em;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

.success-stories {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 60px;
}

.story-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
}

.story-image {
    flex: 1;
    min-width: 300px;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-content {
    flex: 2;
    min-width: 300px;
    padding: 25px;
}

.story-title {
    color: #ff6b6b;
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 5px;
}

.story-meta {
    color: #888;
    font-size: 14px;
    margin-bottom: 15px;
}

.story-text {
    color: #444;
    line-height: 1.6;
    margin-bottom: 20px;
}

.story-quote {
    background: #f9f4e8;
    padding: 15px;
    border-left: 3px solid #ff6b6b;
    font-style: italic;
    margin-top: 20px;
}

.quote-author {
    text-align: right;
    margin-top: 10px;
    color: #666;
    font-size: 14px;
}

.cta-box {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin: 60px auto;
    max-width: 700px;
}

.cta-box h3 {
    color: #ff6b6b;
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 15px;
}

.cta-box p {
    color: #666;
    margin-bottom: 25px;
    font-size: 18px;
}

/* Savjeti stranica */
.tips-page {
    display: none;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.tips-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.tip-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.tip-card:hover {
    transform: translateY(-8px);
}

.tip-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.tip-title {
    color: #ff6b6b;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
}

.tip-content {
    color: #555;
    line-height: 1.6;
}

.tip-content ul {
    padding-left: 20px;
    margin-top: 10px;
}

.tip-content li {
    margin-bottom: 8px;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 80px;
}

.footer-links {
    margin-top: 15px;
}

.footer-links a {
    color: #ff6b6b;
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ffb3b3;
    text-decoration: underline;
}

/* Responzivnost */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .intro-section, .steps-container, .target-users {
        flex-direction: column;
        align-items: center;
    }
    
    .dogs-grid {
        grid-template-columns: 1fr;
    }
    
    .story-card {
        flex-direction: column;
    }
    
    .story-image {
        min-height: 200px;
    }
    
    .tips-container {
        grid-template-columns: 1fr;
    }
}